package com.com.hefei.wdp.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(value = "PRODUCER")  //value： 服务名，调用的是哪个服务提供者
public interface ProducerService {

    @GetMapping("/appInfo")
    public String getAppInfo();
}
